package com.java.simple.smallspring.aop.support;

import com.java.simple.smallspring.aop.ClassFilter;
import com.java.simple.smallspring.aop.MethodMatcher;
import com.java.simple.smallspring.aop.Pointcut;

/**
 * @author zhoujunlin
 * @date 2022年11月20日 13:04
 * @desc
 */
public abstract class StaticMethodMatcherPointcut extends StaticMethodMatcher implements Pointcut {

    private ClassFilter classFilter = ClassFilter.TRUE;

    public void setClassFilter(ClassFilter classFilter) {
        this.classFilter = classFilter;
    }

    @Override
    public ClassFilter getClassFilter() {
        return classFilter;
    }

    @Override
    public MethodMatcher getMethodMatcher() {
        return this;
    }
}
